package com.ytf.test.fourth;

/**
 * @author: YTF
 * @date: 2024/9/14 17:37
 * @version: 1.0
 * @description: 中断和继续
 */
public class BreakAndContinue {
    public static void main(String[] args) {
        for (int i = 0; i < 20 ; i++) {
            if (i==19) {
                break;
            }
            if (i%9!=0){
                continue;
            }
            System.out.println("i: "+i);
        }
        /**
         * Output:
         * i: 0
         * i: 9
         * i: 18
         */
    }
}
